package com.zhn.usermanager.controller;

import com.zhn.usermanager.service.CarService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 车辆查询
 * @author 16053
 */
@RestController
public class CarController {
    @Resource
    private CarService carService;
    @GetMapping("/selectById")
    public Map<String, Object> selectById (@RequestParam int id){
        return carService.selectById(id);
    }
}
